package com.imooc.sell.repository;

import com.imooc.sell.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Description:
 * 商品dao
 *
 * @author zzy
 * @create 2017-09-08 10:19
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {
    /**
     * 通过买家openid来查找
     *
     * @param buyerOpenid
     * @param pageable
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
